package com.bing.habit.controller.admin;

import com.bing.habit.entity.BackgroundMusic;
import com.bing.habit.model.result.Result;
import org.springframework.web.bind.annotation.*;

/**
 * 番茄背景音乐管理
 */
@RestController
@RequestMapping("/admin/background_music")
public class BackgroundMusicController {

    /**
     * 新增/更新 图标分类
     */
    @PostMapping
    public Result addOrUpdate(@RequestBody BackgroundMusic backgroundMusic) {
        return null;
    }

    /**
     * 根据id删除背景音乐
     *
     * @param BackgroundMusicId
     * @return
     */
    @DeleteMapping("/{BackgroundMusicId}")
    public Result delete(@PathVariable("BackgroundMusicId") int BackgroundMusicId) {
        return null;
    }


    /**
     * 列出背景音乐
     *
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/list")
    public Result list(@RequestParam("page") int page, @RequestParam("size") int size) {
        return null;
    }
}
